from PyQt5.Qt import QApplication
from MyQWidget import MyQWidget
import sys

app = QApplication(sys.argv)

# 封装组件
window = MyQWidget();
window.show()

sys.exit(app.exec_())